	//진행상황
	function clsClubRoundRecord_State(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "진행상황을 선택하십시요."			
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_State.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(0)");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			$layer.find("input:radio").attr("id", "rdoState").attr("name", "rdoState");
			this.setValue(0);		
		}	
		, setValue: function(v){			
			var n = 0;
			if(v == "D") n=0;
			else if(v == "C") n=1;
			else if(v =="A") n=2;
			this._HTMLDom["$layer"].find("input:radio").eq(n).prop("checked",true);
			this._HTMLDom["$layer"].find("input:radio").checkboxradio("refresh");
		}
		, getValue: function(){
			var $layer = this._HTMLDom["$layer"];						
			return $layer.find("input:radio").index($layer.find("input:radio:checked"));
		}
		, isValid: function(){
			if(this.getValue()==-1){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, getError: function(){
			return this.errMsg;	
		}
	}
	
	//공개설정
	function clsClubRoundRecord_Open(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "노출종류를 선택하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Open.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(1)");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			$layer.find("input:radio").attr("id", "rdoOpen").attr("name", "rdoOpen");
			this.setValue(0);
		}	
		, setValue: function(v){		
			var n = 0;
			if(v== "Y") n=0;
			else if(v=="N") n=1;
			this._HTMLDom["$layer"].find("input:radio").eq(n).prop("checked",true);
			this._HTMLDom["$layer"].find("input:radio").checkboxradio("refresh");
		}
		, getValue: function(){
			var $layer = this._HTMLDom["$layer"];						
			return $layer.find("input:radio").index($layer.find("input:radio:checked"));
		}
		, isValid: function(){
			if(this.getValue()==-1){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, getError: function(){
			return this.errMsg;	
		}
	}
	
	//라운드일자
	function clsClubRoundRecord_Date(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "라운드일자를 선택하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Date.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(2)");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			
			var d = new Date();
			
			$layer.find("select:eq(0)").empty();			
			$layer.find("select:eq(1)").empty();			
			$layer.find("select:eq(2)").empty();			
			
			for(var i=1;i<=31;++i){
				var tmp = ("0" + i).substrEx(-2);
				
				if(i<=5) $layer.find("select:eq(0)").append("<option>"+ (d.getFullYear()-1+i)+ "</option>");
				if(i<=12) $layer.find("select:eq(1)").append("<option>"+ tmp +"</option>");
				$layer.find("select:eq(2)").append("<option>"+ tmp+"</option>");
			}
			
			this.setValue(""+d.getFullYear()+("0"+(d.getMonth()+1)).substrEx(-2)+("0"+(d.getDate()+1)).substrEx(-2));
		}	
		, setValue: function(v){		
			var $layer = this._HTMLDom["$layer"];
			v = String(v);
			var y = v.substr(0,4);
			var m = v.substr(4,2);
			var d = v.substr(6,2);
			
			$layer.find("select:eq(1) option").eq(y).prop("selected", true);
			$layer.find("select:eq(1) option").eq(m-1).prop("selected", true);
			$layer.find("select:eq(2) option").eq(d-1).prop("selected", true);
			$layer.find("select").selectmenu("refresh");
		}
		, getValue: function(){
			var $layer = this._HTMLDom["$layer"];			
			return $layer.find("select:eq(0) option:selected").html()+ $layer.find("select:eq(1) option:selected").html()+ $layer.find("select:eq(2) option:selected").html();
		}
		, isValid: function(){
			if(this.getValue().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//골프장
	function clsClubRoundRecord_Course(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "골프장코스를 입력하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Course.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(3) input");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			this.setValue("");
		}	
		, setValue: function(v){
			this._HTMLDom["$layer"].val(v);
		}
		, getValue: function(){
			return this._HTMLDom["$layer"].val();
		}
		, isValid: function(){
			if(this.getValue().trim().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//홀정보
	function clsClubRoundRecord_Hole(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "홀정보를 선택하십시요."
			, "_REGULAR": "홀정보에는 숫자만 입력하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Hole.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(4) input");	
			this._HTMLDom = {
				"$layer": $layer				
			}
			this.setValue("0");
		}	
		, isValid: function(){
			var reg = /[0-9]$/ig;	 
			if(this.getValue().trim().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}else if(!reg.test(this.getValue())){
				this.errMsg = this._ERRMSG["_REGULAR"];
				return false;	
			}
			return true;
		}
		, setValue: clsClubRoundRecord_Course.prototype.setValue
		, getValue: clsClubRoundRecord_Course.prototype.getValue
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//모집인원
	function clsClubRoundRecord_Recruit(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "모집인원을 입력하십시요."
			, "_REGULAR": "모집인원에는 숫자만 입력하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Recruit.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(5) input");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			this.setValue("0");
		}	
		, isValid: function(){
			var reg = /[0-9]$/ig;
			
			if(this.getValue().trim().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}else if(!reg.test(this.getValue())){
				this.errMsg = this._ERRMSG["_REGULAR"];
				return false;	
			}
			return true;
		}
		, setValue: clsClubRoundRecord_Course.prototype.setValue
		, getValue: clsClubRoundRecord_Course.prototype.getValue
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//팀명
	function clsClubRoundRecord_Team(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "팀명을 입력해주십시요."
			, "_NOHOUR": "시간을 지정해주십시요."
			, "_NOMINUTE": "분을 지정해주십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Team.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(6) div.input_cont");	
			this._HTMLDom = {
				"$layer": $layer	
				, "$element": $layer.find("div.team_cont:first")
			}
			
			var $selects = $layer.find("div.team_cont:first select");
			
			$selects.eq(0).empty();			
			$selects.eq(1).empty();			
			
			for(var i=0;i<60;++i){
				var tmp = ("0" + i).substrEx(-2);				
				if(i<=12) $selects.eq(0).append("<option>"+ tmp +"</option>");
				$selects.eq(1).append("<option>"+ tmp +"</option>");
			}
			$selects.eq(0).find("option:eq(0)").prop("selected",true);
			$selects.eq(1).find("option:eq(0)").prop("selected",true);
			$selects.selectmenu("refresh");	
			$layer.find("div.team_cont:not(:first)").remove();
		}	
		, setValue: function(thisData){
			this.listData = thisData;
			this.display();
		}
		, display: function(){
			var $layer = this._HTMLDom["$layer"];
			var $element = this._HTMLDom["$element"];
			var thisClass = this;
						
			for(var i=0;i<this.listData.length-1;++i){
				this.append();
			}
		
			$layer.find("div.team_cont").each(function(n){					
				var $hour = Number(thisClass.listData[n]["라운드시간"]);
				var $min = Number(thisClass.listData[n]["라운드분"]);
				
				$(this).find("input:text").val(thisClass.listData[n]["팀명"]);
								
				$(this).find("select:eq(0) option").eq($hour).prop("selected",true);				
				$(this).find("select:eq(0)").prev().find("span.ui-btn-text").html($(this).find("select:eq(0) option:selected").html());					
				
				$(this).find("select:eq(1) option").eq($min).prop("selected",true);				
				$(this).find("select:eq(1)").prev().find("span.ui-btn-text").html($(this).find("select:eq(1) option:selected").html());	
			});
		}
		, getValue: function(){
			var $layer = this._HTMLDom["$layer"];
			var returnData = "";
			var pre = "!@#";
			
			$layer.find("div.team_cont").each(function(n){
				if(returnData != "") returnData += pre;	
				
				returnData += $(this).find("input").val() + pre
								+ $(this).find("select:eq(0) option:selected").html() + pre
								+ $(this).find("select:eq(1) option:selected").html();				
			});
			
			return returnData;
		}
		, append: function(){
			var $layer = this._HTMLDom["$layer"];
			var $element = this._HTMLDom["$element"];
						
			if($layer.find("div.team_cont").length <= 20) {
				$layer.find("div.bt_t").before($element.clone(true));
				
				var tmp = $layer.find("div.team_cont:last select");
				$layer.find("div.team_cont:last input:text").val("");
				for(var i=0;i<2;++i){
					tmp.eq(i).find("option:eq(0)").prop("selected",true);				
					tmp.eq(i).prev().find("span.ui-btn-text").html(tmp.eq(i).find("option:eq(0)").html());
				}
			}else {
				alert("팀은 최대 20개까지만 추가하실 수 있습니다.");
			}
		}
		, remove: function(n){
			if(this._HTMLDom["$layer"].find("div.team_cont").length <= 1){
				alert("최소 1개팀은 삭제하실 수 없습니다.");	
			}else {
				this._HTMLDom["$layer"].find("div.team_cont").eq(n).remove();				
			}
		}
		, $getBtnDelete: function(){
			return this._HTMLDom["$layer"].find("div.team_cont a");	
		}
		, $getBtnMore: function(){
			return this._HTMLDom["$layer"].find("div.bt_t a");	
		}
		, $getLayer: function(){
			return this._HTMLDom["$layer"];	
		}
		, isValid: function(){
			var $layer = this._HTMLDom["$layer"];
			
			for(var i=0;i<$layer.find("input:text").length;++i){
				
				if($layer.find("input:text").eq(i).val().trim().length == 0){
					this.errMsg = this._ERRMSG["_NOVALUE"];
					return false;	
				}
			}
			return true;
		}
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//제목
	function clsClubRoundRecord_Title(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "라운드제목을 입력하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Title.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(7) input");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			this.setValue("");
		}	
		, isValid: function(){
			if(this.getValue().trim().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, setValue: clsClubRoundRecord_Course.prototype.setValue
		, getValue: clsClubRoundRecord_Course.prototype.getValue
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//상세내용
	function clsClubRoundRecord_Text(){
		this.listData = null;
		this.errMsg = null;
		this._ERRMSG = {
			"_NOVALUE": "내용을 입력하십시요."
		}
		this._HTMLDom = null;
		this._init();	
	}
	
	clsClubRoundRecord_Text.prototype = {
		_init: function(){
			var $layer =  $("section#club_round_record>section form div ul li:eq(8) textarea");	
			this._HTMLDom = {
				"$layer": $layer	
			}
			$layer.find("textarea").val("상세내용");
		}	
		, isValid: function(){
			if(this.getValue().trim().length==0){
				this.errMsg = this._ERRMSG["_NOVALUE"];
				return false;
			}
			return true;
		}
		, setValue: clsClubRoundRecord_Course.prototype.setValue
		, getValue: clsClubRoundRecord_Course.prototype.getValue
		, getError: clsClubRoundRecord_State.prototype.getError
	}
	
	//데이터연동		
	function clsComm_ClubRoundRecord(){		
		this.clubRoundInfo = null;
		this.clubRoundInfoRequest = null;
		this._init();
	}	
	clsComm_ClubRoundRecord.prototype = {
		_init: function(){
			this.clubRoundInfoRequest = {
				 "동호회키":null
				, "라운드키": null
				, "페이지": null				
			}
		}
//------------------------ 라운드목록------------------------//		
		, getClubRoundInfo: function(){
			var thisClass = this;
			
			var szClubSeq = this.clubRoundInfoRequest["동호회키"];
			var szRoundSeq = this.clubRoundInfoRequest["라운드키"]
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename","getMyClubRoundInfo");   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
				this.clubRoundInfo = {};
				
				var items = ret["msp"]["contents"]["items"];
			
				if(ret["msp"]["contents"]["items"]){
					
					var obj = ret["msp"]["contents"]["items"];
					var team = obj["roundInfo"]["roundTeamInfoList"][0]["items"];
					var arr = [];
					
					if(team){
												
						if(!team.length){
							team = new Array(team);
						}
						
						var user= [];
						
						//팀별정보
						for(var k=0;k<team.length;++k){
							
							user[k] = [];
							
							//팀별 사용자(최대4명) 정보
							for(var m=0;m<4;++m){
								var str = "assignedUser"+ (m+1) +"Info";
								if(team[k][str]){
									user[k][m]={
										"아이디": _util.nvl(team[k][str]["userId"])
										, "이미지": _util.nvl(team[k][str]["path"]) + _util.nvl(team[k][str]["saveFileName"])
										, "닉네임": _util.nvl(team[k][str]["nickname"])
										, "지역": _util.nvl(team[k][str]["region"])
										, "연령대": _util.nvl(team[k][str]["age"])
										, "성별": _util.nvl(team[k][str]["sex"])
										, "핸디": _util.nvl(team[k][str]["handi"])
										, "평타": _util.nvl(team[k][str]["average"])
									}								
								}
							}
							
							arr.push({
								"팀키": _util.nvl(team[k]["teamSeq"])
								, "팀명": _util.nvl(team[k]["teamName"])
								, "라운드시간": _util.nvl(team[k]["roundHour"])
								, "라운드분": _util.nvl(team[k]["roundMinute"])
								, "사람1": _util.nvl(user[k][0])
								, "사람2": _util.nvl(user[k][1])
								, "사람3": _util.nvl(user[k][2])
								, "사람4": _util.nvl(user[k][3])
							});
						}
					}
					
					//동호회목록
					thisClass.clubRoundInfo= {
						"동호회키": _util.nvl(obj["roundInfo"]["clubSeq"])
						, "닉네임": _util.nvl(obj["userMaster"]["nickname"])
						, "이미지": "http://192.168.0.82/images/board/default_50_50.gif"
						, "라운드키": _util.nvl(obj["roundInfo"]["roundSeq"])
						, "라운드일자": _util.nvl(obj["roundInfo"]["reservDate"])
						, "라운드요일": _util.nvl(obj["roundInfo"]["reservDay"])
						, "라운드시간": _util.nvl(obj["roundInfo"]["firstTime"])
						, "코스명": _util.nvl(obj["roundInfo"]["golfclubCourseInfo"])
						, "홀수": _util.nvl(obj["roundInfo"]["holeInfo"])
						, "라운드명": _util.nvl(obj["roundInfo"]["title"])
						, "모집팀수": _util.nvl(obj["roundInfo"]["totalTeamCnt"])
						, "모집인원수": _util.nvl(obj["roundInfo"]["totalMember"])
						, "신청인원수": _util.nvl(obj["roundInfo"]["requestedMemberCnt"])
						, "배정완료수": _util.nvl(obj["roundInfo"]["assignedMemberCnt"])
						, "라운딩진행상태": _util.nvl(obj["roundInfo"]["procStatus"]) //진행중(0),확정(1),마감(2)													
						, "작성일자": "20120630"
						, "작성시간": "2019"
						, "조회수": "256"
						, "신청상태": _util.nvl(obj["roundInfo"]["roundRequestUser"]["assignedStatus"])
						, "내용": _util.nvl(obj["roundInfo"]["detail"])
						, "노출여부": _util.nvl(obj["roundInfo"]["mainDispYn"])
						, "배정노출유무": _util.nvl(obj["roundInfo"]["assignStatusDispYn"])
						, "팀정보": _util.nvl(arr,[])
					};					
					
				}
			
				$(thisClass).trigger("evtFinishClubRoundInfo");
			}, function($err) {
				alert("evtFinishClubRoundInfo->"+$err);
			});	
		}
		, getClubRoundInfoData: function(){
			return this.clubRoundInfo;
		}
		, setClubRoundInfoRequest: function(key, val){
			this.clubRoundInfoRequest[key] = val;
		}	
//------------------------ 라운드목록------------------------//		
//------------------------ 댓글등록------------------------//		
		, InsertRoundData: function(arg){
			var thisClass = this;
					
			var szClubSeq = arg["동호회키"];
			var szRoundSeq = arg["라운드키"];
			var szRoundState = arg["진행상황"];
			var szRoundOpen = arg["노출여부"];
			var szRoundDate = arg["라운드일자"];
			var szCourse = arg["라운드코스"];
			var szHole = arg["홀정보"];
			var szRecruit = arg["모집인원"];
			var szTeam = arg["팀정보"]; //document.objUtil.ajaxTrans(arg["팀정보"]);
			var szTitle = arg["제목"]; //document.objUtil.ajaxTrans(arg["제목"]);
			var szContents = arg["내용"]; //document.objUtil.ajaxTrans(arg["내용"]);
			
			var szModule = (szRoundSeq==""?"registClubRound":"updateClubRound");
			
			var objJson = new MJson();
        	var cm = new ConnectionManager();
			
			objJson.putClient("userid", _util.getLogin("아이디"));
        	objJson.putPub("sid", "CL001");
        	objJson.putPub("servicename",szModule);   
        					
        	objJson.putParameter("clubSeq", szClubSeq);
        	objJson.putParameter("roundSeq", szRoundSeq);
        	objJson.putParameter("procStatus", szRoundState);
        	objJson.putParameter("mainDispYn", szRoundOpen);
        	objJson.putParameter("reservDate", szRoundDate);
        	objJson.putParameter("golfclubCourseInfo", szCourse);
        	objJson.putParameter("holeInfo", szHole);
        	objJson.putParameter("totalMember", szRecruit);
        	objJson.putParameter("title", szTitle);
        	objJson.putParameter("detail", szContents);
        	objJson.putParameter("roundTeamInfoStr", szTeam);
			
			cm.requestGet(objJson.getJsonString(), function(ret){
			
				var resData = {
					"응답코드": (ret["msp"]["contents"]["serviceResult"] == "00000"?true:false)
					, "메세지": _util.getResultMsg(ret)
				}
				
				$(thisClass).trigger("evtFinishClubRoundSubmit", [resData]);
			}, function($err) {
				alert("evtFinishClubRoundSubmit->"+$err);
			});	
		}
//------------------------ 댓글등록------------------------//	
	}
	
	//컨트롤파일
	function ClubRoundRecord(){				
		this.objComm = null;
		this.club_seq = null;	
		this.round_seq = null;
		
		this.club_info = null;		
		this.objClubRoundRecord_State = null;
		this.objClubRoundRecord_Open = null;
		this.objClubRoundRecord_Date = null;
		this.objClubRoundRecord_Course = null;
		this.objClubRoundRecord_Hole = null;
		this.objClubRoundRecord_Recruit = null;
		this.objClubRoundRecord_Team = null;
		this.objClubRoundRecord_Title = null;
		this.objClubRoundRecord_Text = null;
	};
	
	ClubRoundRecord.prototype = {
	    onPageShow : function() {	    
	    	$("a").attr("href", "").attr("data-rel", "");      
	    	this._init();	    		    
	    }
	    , _beforeStart: function(){
	    	var 	thisClass = this;
	    	
	    	this._permitStart = {
				"동호회정보": false	
			}
			
	  		// 서버 메시지맵
			$.ajax({
				url: "../js/src/club/club_inc.js"
				, type: "get"
				, dataType: "script"
				, async: false
				, success: function(ret, sta){
					//alert("success!!");					
				}
				, error:function(e){
					alert("error=" + e);
				}	
			});
			
			_cb.getClubInfoData({
				"콜백": function(ret, l){
					thisClass._permitStart["동호회정보"] = true;	
				}
			});
			
			_util.executeThread(function(){
				for(key in thisClass._permitStart){		
					if(!thisClass._permitStart[key]) return false;
				}
				return (true);
			}, function(){			
				thisClass._start();
			});
	    }
	    , _init: function(){	    	    	
	    		    	
	    	this.objComm = new clsComm_ClubRoundRecord();
			this.objClubRoundRecord_State = new clsClubRoundRecord_State();
			this.objClubRoundRecord_Open = new clsClubRoundRecord_Open();
			this.objClubRoundRecord_Date = new clsClubRoundRecord_Date();
			this.objClubRoundRecord_Course = new clsClubRoundRecord_Course();
			this.objClubRoundRecord_Hole = new clsClubRoundRecord_Hole();
			this.objClubRoundRecord_Recruit = new clsClubRoundRecord_Recruit();
			this.objClubRoundRecord_Team = new clsClubRoundRecord_Team();
			this.objClubRoundRecord_Title = new clsClubRoundRecord_Title();
			this.objClubRoundRecord_Text = new clsClubRoundRecord_Text();
		
	      this.getParam();
	      
	      this._beforeStart();
	    	
	    	this._role();
	       
	      	this._bind();	 
	      	this._eventFinish();     	
	    }
	    , _start: function(){	    	
	    	//동호회기본정보
	    	this.club_info = _cb.getClubInfo();
	
   			//수정시
			if(this.round_seq){
				$("section#club_round_record>section form div.btn_area02 div div span.ui-btn-text:eq(0)").html("수정");
				this.spinStart();
				this.objComm.setClubRoundInfoRequest("동호회키", this.club_seq);
				this.objComm.setClubRoundInfoRequest("라운드키", this.round_seq);					
				this.objComm.getClubRoundInfo();	
			}
	    	
	    }
	    , _eventFinish: function(){
	    	var thisClass = this;
	    	
	    	//라운드정보 조회 완료 이벤트 
			$(this.objComm).bind("evtFinishClubRoundInfo", function(){
				var thisData = thisClass.objComm.getClubRoundInfoData();
				
				thisClass.objClubRoundRecord_State.setValue(thisData["라운딩진행상태"]);
				thisClass.objClubRoundRecord_Open.setValue(thisData["노출여부"]);
				thisClass.objClubRoundRecord_Date.setValue(thisData["라운드일자"]);
				thisClass.objClubRoundRecord_Course.setValue(thisData["코스명"]);
				thisClass.objClubRoundRecord_Hole.setValue(thisData["홀수"]);
				thisClass.objClubRoundRecord_Recruit.setValue(thisData["모집인원수"]);
				thisClass.objClubRoundRecord_Team.setValue(thisData["팀정보"]);
				thisClass.objClubRoundRecord_Title.setValue(thisData["라운드명"]);
				thisClass.objClubRoundRecord_Text.setValue(thisData["내용"]);
				thisClass.spinEnd();
			});
			
	    	//게시글 등록 완료이벤트
			$(this.objComm).bind("evtFinishClubRoundSubmit", function(event, resData){				
				alert(resData["메세지"]);				
				if(resData["응답코드"]){									
					$.mobile.changePage("../club/club_round.html","slide",true); 
				}			
			});
			
	    }
		 , _bind: function(){
		 	var thisClass = this;
		 	
		 	//팀추가
		 	this.objClubRoundRecord_Team.$getBtnMore().click(function(event){
		 		event.preventDefault();
		 		thisClass.objClubRoundRecord_Team.append();
		 	});
		 	
		 	//팀삭제
		 	this.objClubRoundRecord_Team.$getBtnDelete().click(function(event){
		 		
				var idx = thisClass.objClubRoundRecord_Team.$getBtnDelete().index($(this));
				
				if(thisClass.round_seq){
					if(thisClass.objClubRoundRecord_Team.listData.length-1 >= idx){
						if(thisClass.objClubRoundRecord_Team.listData[idx]["사람1"]){
							if(thisClass.objClubRoundRecord_Team.listData[idx]["사람1"]["닉네임"]){
								alert("이미 배정된 회원이 있습니다.\n해당 팀의 회원 배정을 취소 후 다시 시도하여 주세요.");	
								return;
							}else{
								thisClass.objClubRoundRecord_Team.listData.splice(idx,1);	
							}
						}
					}
				}
				
				thisClass.objClubRoundRecord_Team.remove(idx);
		 	});
	 	 	
	 	 	//확인
			$("section#club_round_record>section form div.btn_area02 div div a:eq(0)").click(function(event){
				
				var szClubSeq = thisClass.club_seq;
				var szRoundSeq = thisClass.round_seq;
				var szRoundState = thisClass.objClubRoundRecord_State.getValue();
				var szRoundOpen = thisClass.objClubRoundRecord_Open.getValue();
				var szRoundDate = thisClass.objClubRoundRecord_Date.getValue();
				var szCourse = thisClass.objClubRoundRecord_Course.getValue();
				var szHole = thisClass.objClubRoundRecord_Hole.getValue();
				var szRecruit = thisClass.objClubRoundRecord_Recruit.getValue();
				var szTeam = thisClass.objClubRoundRecord_Team.getValue();
				var szTitle = thisClass.objClubRoundRecord_Title.getValue();
				var szContents = thisClass.objClubRoundRecord_Text.getValue();
					
				if(!thisClass.objClubRoundRecord_State.isValid()){
					alert(thisClass.objClubRoundRecord_State.getError());	
					return;
				}else if(!thisClass.objClubRoundRecord_Open.isValid()){
					alert(thisClass.objClubRoundRecord_Open.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Date.isValid()){
					alert(thisClass.objClubRoundRecord_Date.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Course.isValid()){
					alert(thisClass.objClubRoundRecord_Course.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Hole.isValid()){
					alert(thisClass.objClubRoundRecord_Hole.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Recruit.isValid()){
					alert(thisClass.objClubRoundRecord_Recruit.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Team.isValid()){
					alert(thisClass.objClubRoundRecord_Team.getError());	
					return;
				}else if(!thisClass.objClubRoundRecord_Title.isValid()){
					alert(thisClass.objClubRoundRecord_Title.getError());
					return;
				}else if(!thisClass.objClubRoundRecord_Text.isValid()){
					alert(thisClass.objClubRoundRecord_Text.getError());
					return;
				}
			
				var submitData = {
					"동호회키": szClubSeq
					, "라운드키": szRoundSeq
					, "진행상황": (szRoundState=="0"?"P":"C") //0(P)-진행,1(C)-확정,2(D)-마감
					, "노출여부": (szRoundOpen=="0"?"Y":"N") //0-홈노출,1-동호회노출
					, "라운드일자": szRoundDate.replace(/\-/g,"")
					, "라운드코스": szCourse
					, "홀정보": szHole
					, "모집인원": szRecruit
					, "팀정보": szTeam
					, "제목": szTitle
					, "내용": szContents
				}
							
				thisClass.objComm.InsertRoundData(submitData);
			});
			
			//취소
			$("section#club_round_record>section form div.btn_area02 div div a:eq(1)").click(function(event){
				event.preventDefault();
				if(thisClass.round_seq){
					_gf.CLUB_DATA = {
						"동호회키": thisClass.club_seq
						, "라운드키": thisClass.round_seq
					}
		 			$.mobile.changePage("club_round_view.html","slide",true);	
		 		}else {
		 			$.mobile.changePage("club_round.html","slide",true);	
		 		}
			});
			
			//셀렉트박스변경
			this.objClubRoundRecord_Team.$getLayer().on("change", "select", function(event){
				event.preventDefault();				
				var n = thisClass.objClubRoundRecord_Team.$getLayer().find("select").index($(this));
				var obj = thisClass.objClubRoundRecord_Team.$getLayer().find("select").eq(n);
				obj.prev().find("span.ui-btn-text").html(obj.find("option:selected").html());
			})
			
		 	//메뉴
		 	$("section#club_round_record nav ul li a:eq(0)").click(function(event){
		 		event.preventDefault();
		 		thisClass.goNavi();
		 	});
		 	
		 	//알림
		 	$("section#club_round_record nav ul li:eq(1)").click(function(event){
		 		event.preventDefault();
		 		$.mobile.changePage("../inc/info_booking.html","slide",true);	
		 	});
		 	
		 	//이전
		 	$("section#club_round_record header div.top_title_B div.top_right a.btn11").click(function(event){
		 		event.preventDefault();
		 		_gf.CLUB_DATA = {
					"동호회키": thisClass.club_seq	
				}
		 		$.mobile.changePage("club_round.html","slide",true);	
		 	});
		 }
		 , getParam: function(){
	    	this.club_seq = _gf.CLUB_DATA["동호회키"];	    	    		    	
	    	this.round_seq = _util.nvl(_gf.CLUB_DATA["라운드키"]);
	    }
	    , _role: function(){
	    		
	   }
		, goNavi: function(){			
			$.mobile.changePage("../inc/navi.html","slide",true);
		}
		, goLogin: function(){
			_gf.LOGIN_DATA.loginAfterUrl = "../club/club_round.html";
			$.mobile.changePage("../member/login.html","slide",true); 
		}
	    , spinStart: function(){		
			$.mobile.showPageLoadingMsg();			
		}
		, spinEnd: function(){			
	 		$.mobile.hidePageLoadingMsg();				
		}
	}